package com.econ.powercloud.ems.constant;

/**
 * @Author : zjf
 * @Description :
 * @Date : 2022/7/1 11:46
 * @Modified by : zjf
 */
public class SysConstant {

    public static final String COLLECTION_NAME_ANALOG_PREFIX = "ANALOG_DATA";

    public static final String COLLECTION_NAME_STATUS_PREFIX = "STATUS_DATA";

    public static final String COLLECTION_NAME_EMS_FAULT_PREFIX = "EMS_FAULT";

    public static final String COLLECTION_NAME_EMS_STATISTICAL_DAY_PREFIX = "EMS_STATISTICAL_DAY";

    public static final String COLLECTION_NAME_EMS_STATISTICAL_MONTH_PREFIX = "EMS_STATISTICAL_MONTH";

    public static final String COLLECTION_NAME_EMS_STATISTICAL_YEAR = "EMS_STATISTICAL_YEAR";

    /**
     * 用户操作权限令牌
     */
    public final static String USER_OPERATE_TOKEN = "user_operate_token:%s";

    /**
     * 超管的权限等级 超管拥有所有数据权限
     */
    public static final int AUTH_LEVEL_SUPPER_USER = 100;

    public static final int AUTH_LEVEL_OPERATION_MANAGEMENT = 70;

    public final static String SPOT = ".";

    public final static String SLASH = "/";

    public final static String CABLE = "-";

    public final static String COLON = ":";

    public final static String COMMA = ",";

    //星号
    public final static String asterisk = "*";

    public final static Integer ONE_INTEGER = 1;

    /**
     * 默认页数
     */
    public final static String DEFAULT_PAGENO = "1";

    /**
     * 默认页码
     */
    public final static String DEFAULT_PAGESIZE = "50";

    /**
     * 默认策略
     */
    public final static String DEFAULT_STRATEGY = "默认策略";

    /**
     * 移峰填谷最大分钟数
     */
    public final static Integer MAX_PEAKSHIFT_MINUTE = 1440;

    /**
     * 待机功率power
     */
    public final static Double POWER = 0.0;

    /**
     * 策略初始时间startTime
     */
    public final static Integer STRATEGY_DEFAULT_STARTTIME = 0 ;

    /**
     * 电表报表第一行中的日期对应的code
     */
    public final static String DATE = "date";

    /**
     * 电表报表第2行中的设备对应的code
     */
    public final static String DEVICE_NAME = "deviceName";
    /**
     * 电表报表第2行中的设备对应的code
     */
    public final static String DEVICE_NAME_REMARK = "所属设备";
    /**
     * 电表报表第一行中的日期对应的中文名称
     */
    public final static String DATE_REMARK = "日期";

    /**
     * 存放BMS中每个小时历史数据
     */
    public final static String BMS_HIS_HOUR = "EMS:BMS:HIS:HOUR";

    /**
     * 存放电表中的上一个小时历史数据
     */
    public final static String METER_HIS_HOUR = "EMS:METER:HIS:HOUR";

    /**
     * 存放电表中的当天最开始的历史数据
     */
    public final static String METER_HIS_DAY = "EMS:METER:HIS:DAY";

    /**
     * 存放电表中的当月最开始的历史数据
     */
    public final static String METER_HIS_MONTH = "EMS:METER:HIS:MONTH";

    public final static String TABLE_LOGO = "m";


    public final static String METER_HIS = "EMS:METER:HIS";

    public final static String STATION_PCS = "储能站PCS";

    public final static String STATION_BMS = "储能站BMS";

    public final static Integer MAX_COMBINATION_NUM = 30;

    public static final String EMS_APPLICATION = "ems";
    //故障告警
    public static final String EMS_FAULT = "EMS:FAULT:%s";
    //保护事件
    public static final String EMS_PROTECTEVENT = "EMS:PROTECTEVENT:%s";
    //SOE事件
    public static final String EMS_SOEEVENT = "EMS:SOEEVENT:%s";

}
